﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;
using W.Warehouse.Domain;
using W.Warehouse.Domain.Reportlosses;
using W.Warehouse.Repository.Interface;

namespace W.Warehouse.Repository.Impl
{
    public class ReportlossesRepository : BaseRepositoy<ReportlossesInfo>, IReportlossesRepository
    {
        public ReportlossesRepository(EFCoreDbContext context) : base(context)
        {
        }


        public async Task<int> AddAsync(ReportlossesInfo info)
        {
            return await base.AddAsync(info);
        }

        public async Task<int> DeleteAsync(ReportlossesInfo info)
        {
            return await base.DeleteAsync(info);
        }

        public async Task<List<ReportlossesInfo>> GetAllAsync()
        {
            return await base.GetAllAsync();
        }

        public async Task<List<ReportlossesInfo>> GetAsync(Expression<Func<ReportlossesInfo, bool>> expre)
        {
            return await base.GetAsync(expre);
        }

        public async Task<ReportlossesInfo> GetModelAsync(int id)
        {
            return await base.GetModelAsync(id);
        }

        public async Task<int> UpdateAsync(ReportlossesInfo t)
        {
            return await base.UpdateAsync(t);
        }

        public async Task<int> UpdateRangeAsync(List<ReportlossesInfo> t)
        {
            return await base.UpdateRangeAsync(t);
        }
    }
}
